package com.cloudptt.wp.ui.address.map.data;

import com.mcptt.db.model.UserInfo;

public class UserPoint {

	private UserInfo userInfo;
	private PointInfo pointInfo;
	
	public UserInfo getUserInfo() {
		return userInfo;
	}
	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}
	public PointInfo getPointInfo() {
		return pointInfo;
	}
	public void setPointInfo(PointInfo pointInfo) {
		this.pointInfo = pointInfo;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (obj instanceof UserPoint) {
			UserPoint userPoint = (UserPoint)obj;
			return (userPoint.getPointInfo().equals(this.getPointInfo()) && userPoint.getUserInfo().equals(this.getUserInfo()));
		}
		else {
			return false;
		}
	}
	
}
